<script src="js/date-functions.js" type="text/javascript"></script>
<script src="js/datechooser.js" type="text/javascript"></script>
<form action="admin.php?action=events" method="post" onSubmit="return confirm('<?= $lang['Confirm'] ?>');">
<input name="id" type="hidden" value="<?= $id ?>">
<input name="itemID" type="hidden" value="<?= $champid ?>">
<table class="contentTable" border="0">
  <tr>
    <td width="25%" class="tableLabel"><?= $lang['EventTitle']?></td>
    <td colspan="5" width="75%"  class="tableButtonLeft"><input name="title" type="text" class="controlinput" id="fullTitle" value="<?= $title?>" maxlength="100"></td>
  </tr>
   <tr>
    <td class="tableLabel"><?= $lang['EventTrack']?></td>
    <td colspan="5" class="tableButtonLeft"><select name="track"  class="controlinput"  id="track"><?= $trackOptions ?></select></td>
  </tr>
  <tr>
    <td class="tableLabel"><?= $lang['EventActive']?></td>
    <td colspan="5" class="tableButtonLeft"><select name="active"  class="controlinput"  id="active"><?= $activeOptions ?></select>
  </td>
   <tr>
    <td class="tableLabel"><?= $lang['EventDescription']?></td>
    <td colspan="5" class="tableButtonLeft"><textarea name="description" rows="8" class="controlinput" id="description"><?= $description ?></textarea></td>
  </tr>
  <tr>
    <td width="25%" class="tableLabel"><?= $lang['EventPreEvent']?></td>
    <td colspan="5" width="75%"  class="tableButtonLeft"><input name="preevent" type="text" class="controlinput" id="preevent" value="<?= $preevent?>" maxlength="100"></td>
  </tr>
  <tr>
    <td width="25%" class="tableLabel"><?= $lang['EventPostEvent']?></td>
    <td colspan="5" width="75%"  class="tableButtonLeft"><input name="postevent" type="text" class="controlinput" id="postevent" value="<?= $postevent?>" maxlength="100"></td>
  </tr>